get_or_default

pure function <R: +V> get_or_default(key: K, default: R): R

Get the value associated with the given key in this map.

Return

the value associated with the given key in this map, or default if the key is not found

Since

0.11.0

Parameters

key

the key to look up

default

the default value (lazily evaluated) to return if the key is not found